import request from "@/api/request"


function addgoods(data){
    return request({
        url:"/cart/addCart",
        method:"post",  
        data
    })
}

// 购物车列表

function goodslist(data){
    return request({
        url:"/cart/cartList",
        method:"get",  
        data
    })
}
function deleteAction(data){
    return request({
        url:"/cart/deleteAction",
        method:"get",  
        data
    })
}

// 添加收藏
function addcollect(data){
    return request({
        url:"/collect/addcollect",
        method:"post",  
        data
    })
}
// 收藏列表
function cartList(data){
    return request({
        url:"/collect/listAction",
        method:"get",  
        data
    })
}
export{
    addgoods,goodslist ,deleteAction ,addcollect ,cartList
}